﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
using Microsoft.WindowsCE.Forms; 

namespace smart_test
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main()
        {
            SystemSettings.ScreenOrientation = ScreenOrientation.Angle270;
            SplashForm spFrm = new SplashForm();
            spFrm.Show();
            spFrm.Refresh();
            Form1 frm1 = new Form1(spFrm);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            Application.Run(frm1);
        }

        static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            if (e.ExceptionObject is Exception)
            {
                MessageBox.Show(((Exception)(e.ExceptionObject)).Message);

                return;
            }
        }
    }
}